package day14;

import java.util.concurrent.CountDownLatch;

/**
 * @author Xiao
 * @date 2021/8/9
 */
public class GameTest {
    public static void main(String[] args) {
        CountDownLatch cdl = new CountDownLatch(2);
        Game game = new Game(cdl);
        XiaoMing xm = new XiaoMing(cdl);
        XiaoHong xh = new XiaoHong(cdl);
        Thread t1 = new Thread(game);
        Thread t2 = new Thread(xm);
        Thread t3 = new Thread(xh);
        t1.start();
        t2.start();
        t3.start();
    }
}
